package com.gouaixin.bee.beeframework2.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.TextView;

import com.ab.util.AbToastUtil;
import com.gouaixin.bee.beeframework2.R;

/**
 * Created by Administrator on 2015/3/10.
 */
//确认订单2（包月）
public class B22_querendingdanActivity2 extends FragmentActivity {
    Context context=B22_querendingdanActivity2.this;

    //顶部
    ImageView back;//返回
    TextView title;//标题

    TextView orderTv,priceTv;//订单名、订单价格
    CheckBox tuijian01Cb,tuijian02Cb,tuijian03Cb,tuijian04Cb;//更多推荐的多选框
    TextView queding;//确定


    String order="";//订单名
    String price="";//订单价格
    int flag;//进来之前的界面标签

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.b22_querendingdan_baoyue);

        initView();

        initIntent();

        setData();

        setListener();
    }

    private void initView() {
        back= (ImageView) findViewById(R.id.back);
        title= (TextView) findViewById(R.id.title);
        orderTv= (TextView) findViewById(R.id.tv02);
        priceTv= (TextView) findViewById(R.id.tv03);
        tuijian01Cb= (CheckBox) findViewById(R.id.man01);
        tuijian02Cb= (CheckBox) findViewById(R.id.man02);
        tuijian03Cb= (CheckBox) findViewById(R.id.man03);
        tuijian04Cb= (CheckBox) findViewById(R.id.man04);
        queding= (TextView) findViewById(R.id.queding);
    }

    private void initIntent() {
        Intent it=getIntent();
        order=it.getStringExtra("order");
        price=it.getStringExtra("price");
        flag=it.getIntExtra("flag",0);

    }

    private void setData() {
        orderTv.setText(order);
        priceTv.setText("￥"+price);
    }

    private void setListener() {
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        queding.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                AbToastUtil.showToast(context,"支付功能正在开发中……");




            }
        });

    }




}
